<?php
class post_widgetWidget extends Widget {

	public function render(){
        
        //instance model
        $post_model = $this->model('posts');
        
        $post_data = $post_model->from('posts', array('post_id', 'post_title'))->where('post_type=0')->order('post_id desc')->limit(0, 10)->select();
        
        //display widget
        include $this->view();
	}
}